package de.thw.web.factory;

import org.springframework.web.servlet.ModelAndView;

import de.thw.web.object.Page;

public class MainFactory extends AbstractFactory {

	public static ModelAndView getModelAndView(Page page) {

		ModelAndView modelView = new ModelAndView();
		
		modelView.setViewName("main");
		modelView.addObject("page", page);
		
		return modelView;
	};

};